export interface ReqResponseData {
  code: number;
  message: string;
  ok: boolean;
}
// 权限菜单type
export interface PermissionData {
  id?: number;
  createTime: string;
  updateTime: string;
  pid: number;
  name: string;
  code: string;
  toCode: string;
  type: number;
  status: null;
  level: number;
  children?: permission;
  select: boolean;
}
export type permission = PermissionData[];
//菜单权限与按钮权限数据的ts类型
export interface PermissionResponseData extends ReqResponseData {
  data: permission;
}
//添加与修改菜单携带的参数的ts类型
export interface MenuParams {
  id?: number; //ID
  code: string; //权限数值
  level: number; //几级菜单
  name: string; //菜单的名字
  pid: number; //菜单的ID
}
